/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package blackjack;
import java.util.*;
/**
 *
 * @author ronricha
 */
public class StandardDeck implements Deck
{
    
    public LinkedList<PlayingCard> deck = new LinkedList();
    
    public void addCard(PlayingCard playingCard) {
       deck.add(playingCard);
    }

    public void shuffle() {
        Collections.shuffle(deck);
    }

    public PlayingCard deal() {
        return deck.removeLast();
    }
}

